package string;

public class Starts1 {
    public static void main(String[] args) {

        String str = "www.4399.com";
        boolean starts = str.startsWith("http.");
        boolean ends = str.endsWith(".com");
        System.out.println(starts);
        System.out.println(ends);

    }
}